﻿<form action="add_post.php" method="post" name="form1" class="p" id="form1">
            <p>
              <label>Название<br />
                <input value="<?php echo $title ?>" type="text" name="title" id="title" />
                <?php  if (isset($title_error))  {echo "$title_error";} ?>
              </label>
            </p>
            <p>
             
              
              
              <label>Введите полный текст поста<br />
                <textarea name="text" id="text" cols="40" rows="20"><?php echo $text?></textarea>
                 <?php  if (isset($text_error))  {echo "$text_error";} ?>
              </label>
            </p>
            <p>
              <label>Введите автора <br />
            <input value="<?php echo $author ?>" type="text" name="author" id="author" />
            <?php  if (isset($author_error)) {echo "$author_error";} ?> 
              </label>
            </p>
            <p>
              <label>
                <input type="submit" name="submit" id="submit" value="Добавить пост" />
              </label>
            </p>
          </form>